<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wechat_timing_push', function (Blueprint $table) {
            $table->id();
            $table->string('corp_id')->default('')->comment('企业ID');
            $table->string('open_kfid')->default('')->comment('客服ID');
            $table->string('push_time')->default('')->comment('推送时间');
            $table->string('msg_type')->default('')->comment('消息类型');
            $table->string('content')->default('')->comment('消息内容');
            $table->string('title')->default('')->comment('消息标题');
            $table->string('desc')->default('')->comment('消息描述');
            $table->string('url')->default('')->comment('跳转链接');
            $table->string('media_id')->default('')->comment('素材ID');
            $table->string('appid')->default('')->comment('小程序ID');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wechat_timing_push');
    }
};
